package com.ruoyi.project.app.response;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(value = "OrderRepayPlanResponse")
public class OrderRepayPlanResponse {

    @ApiModelProperty(value = "还款日期", position = 1)
    private String dueDate;

    @ApiModelProperty(value = "还款金额", position = 2)
    private String dueAmount;
    @ApiModelProperty(value = "银行卡号", position = 3)
    private String bankBardNumber;
    @ApiModelProperty(value = "银行名称", position = 3)
    private String bankName;

    @ApiModelProperty(value = "还款详情字符串", position = 3)
    private String details;

    @ApiModelProperty(value = "还款详情Json", dataType = "OrderRepayPlanItemResponse", position = 4)
    private List<OrderRepayPlanItemResponse> detailsList;

    public void setDetails(String details) {
        this.detailsList = JSON.parseArray(details, OrderRepayPlanItemResponse.class);
    }
}
